// router.js
import React from 'react'
import { HashRouter as Router, Route} from 'react-router-dom'
import Home from '../pages/home'
import Detail from '../pages/detail/loadable'
import Header from '../common/header'
import Login from '../pages/login'
const BasicRoute = () => (
  <Router>
    <Header />
    <Route exact path='/' component={Home} />
    <Route path='/detail/:id' component={Detail} />
    <Route exact path='/login' component={Login} />
  </Router>
);
 
export default BasicRoute;